<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app"></div>
    <script src="../packages/reactivity/dist/reactivity.global.js"></script>
    <script>
        // 数组依赖收集的方式
        const { reactive, readonly, toRaw, markRaw, effect, ref } = VueReactivity;
        const state = {name:'jw'}
        // 1). effect中嵌套effect的runner

        debugger

        let runner = effect(()=>{ 
            state.name = 'super man';
        });
        debugger
        effect(runner); 


        // reactive readonly  shallowReactive shallowReadonly
        // toRew markRaw
        // effect -> computed watch (scheduler)
        // ref toRef(target,key) toRefs(target)  proxyRefs （拆value）


        
    </script>
</body>
</html>